<?php
$this->headTitle('Tin Thường Hết Hạn','append');
?>
<form id="form" class="form-option" method="post" action="" enctype="multipart/form-data" name="form">
<div class="dashboard-menu dashboard-admin">
    <span class="back">&nbsp;</span>
    <h1>Tin Thường Hết Hạn</h1>  <button type="submit" class="btn btn-primary" onClick="return confirm('Bạn có muốn xóa vĩnh viễn tất cả tin hết hạn này?')">Xóa Hết</button>      
</div>
<?php 
 if(isset($this->mess)){
    if($this->flag == 'success')
        echo '<div class="bg-success">',$this->mess,'</div>';
    elseif($this->flag == 'alert')
        echo '<div class="bg-warning">',$this->mess,'</div>';
    else
        echo '<div class="bg-danger">',$this->mess,'</div>';
}
?>
<div class="row placeholders">
    <div class="col-md-12">
        <div class="widget-big">
            <div class="table table-responsive">
                <div class="search-result">
                    <table class="table table-bordetext-danger table-striped table-condensed table-hover" border="0" cellspacing="0" cellpadding="0">
                        <thead>
                            <tr class="warning">
                                <th style="width:5%;">ID</th>
                                <th style="width:10%;">Khu Vực</th>
                                <th style="width:15%;">Danh Mục</th>
                                <th style="width:10%;">Tiêu Đề</th>
                                <th style="width:5%;">Ngày Đăng</th>
                                <th style="width:5%;">Ngày Hết Hạn</th>
                                <th style="width:5%;">Liên Hệ</th>
                                <th style="width:5%;">Di Động</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php                        
                            foreach ($this->productList as $pro){
                        ?>
                            <tr>
                                <input type="hidden" name="proId[]" value="<?php echo $pro['id'];?>" /> 
                                <td style="width:5%;" class="text-left"><?=$pro['id'];?></td>
                                <td style="width:10%;" class="text-left"><?=$pro['areaName'];?></td>
                                <td style="width:15%;" class="text-left"><?=$pro['itemName'];?></td>
                                <td style="width:10%;" class="text-left"><?=$pro['title'];?></td>
                                <td style="width:10%;" class="text-left"><?=date('Y-m-d',$pro['startDate']);?></td> 
                                <td style="width:10%;" class="text-left"><?=date('Y-m-d',$pro['endDate']);?></td>
                                <td style="width:10%;" class="text-left"><?=$pro['contact'];?></td>
                                <td style="width:10%;" class="text-left"><?=$pro['mobile'];?></td>
                            </tr>
                        <?php
                            } 
                        ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
</form>